export default [
  {
    path: '/project/form',
    redirect: 'editor',
    component: (resolve) => require(['@/views/form'], resolve),
    children: [
      {
        path: 'editor',
        component: (resolve) => require(['@/views/form/editor'], resolve),
        meta: {title: '问卷设计'}
      },
      {
        path: 'logic',
        component: (resolve) => require(['@/views/form/logic'], resolve),
        meta: {title: '问卷逻辑'}
      },
      {
        path: 'preview',
        component: (resolve) => require(['@/views/form/preview'], resolve),
        meta: {title: '问卷预览'}
      },
      {
        path: 'setting',
        component: (resolve) => require(['@/views/form/setting'], resolve),
        meta: {title: '问卷设置'}
      },
      {
        path: 'workflow',
        component: (resolve) => require(['@/views/form/workflow'], resolve),
        meta: {title: '流程设置'}
      },
      {
        path: 'publish',
        component: (resolve) => require(['@/views/form/publish'], resolve),
        meta: {title: '问卷发布'}
      },
      {
        path: 'theme',
        component: (resolve) => require(['@/views/form/theme'], resolve),
        meta: {title: '问卷主题'}
      },
      {
        path: 'statistics',
        component: (resolve) => require(['@/views/form/statistics'], resolve),
        meta: {title: '问卷统计'}
      },
      {
        path: 'data',
        component: (resolve) => require(['@/views/form/data'], resolve),
        meta: {title: '问卷数据'}
      }
    ]
  }
]
